﻿<phone:PhoneApplicationPage 
    x:Class="Wulong.Phone.Dianping.Views.AboutView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait"
    shell:SystemTray.IsVisible="False">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
            <StackPanel Orientation="Horizontal">
                <Image Source="/ApplicationIcon_173.png"/>
                <StackPanel
                    Width="260"
                    HorizontalAlignment="Center">
                    <TextBlock 
                        Margin="10,5,5,10"
                        FontSize="36"
                        HorizontalAlignment="Center"
                        Text="{Binding Source={StaticResource ls}, Path=Appi18n.App_Title}"/>
                    <TextBlock
                        FontSize="26"
                        Margin="10,5,5,10"
                        HorizontalAlignment="Center"
                        Text="{Binding Source={StaticResource ls}, Path=Appi18n.App_Version}" 
                        Foreground="#FF17ABC4" />
                    <TextBlock
                        Margin="10,5,5,10"
                        Foreground="Gray"
                        HorizontalAlignment="Center"
                        Text="{Binding Source={StaticResource ls}, Path=Appi18n.App_Copyright}"/>
                </StackPanel>
            </StackPanel>
        </StackPanel>
        <!--Pivot Control-->
        <controls:Pivot 
            Grid.Row="1"
            >
            <!--Pivot item one-->
            <controls:PivotItem Header="{Binding Source={StaticResource ls}, Path=Appi18n.About_Overview}">
                <ScrollViewer>
                <StackPanel>
                    <TextBlock
                        FontSize="26"
                        TextWrapping="Wrap"
                        Text="{Binding Source={StaticResource ls}, Path=Appi18n.About_Overview_Desc}"/>
                    <Button
                        x:Name="RateAndReview"
                        Content="{Binding Source={StaticResource ls}, Path=Appi18n.Btn_Rate}"/>
                    <Button
                        x:Name="MoreAppsFromUs"
                        Content="{Binding Source={StaticResource ls}, Path=Appi18n.Btn_MoreApps}"/>
                </StackPanel>
                </ScrollViewer>
            </controls:PivotItem>

            <!--Pivot item two-->
            <controls:PivotItem Header="{Binding Source={StaticResource ls}, Path=Appi18n.About_Support}">
                <StackPanel>
                    <TextBlock
                        FontSize="36"
                        Text="{Binding Source={StaticResource ls}, Path=Appi18n.App_Author_Title}" 
                        FontWeight="Bold" />
                    <TextBlock
                        FontSize="26"
                        Text="{Binding Source={StaticResource ls}, Path=Appi18n.App_Author}" 
                        Foreground="#FF64C4FB"
                        FontWeight="Bold"
                        />
                    <TextBlock
                        FontSize="36"
                        Text="{Binding Source={StaticResource ls}, Path=Appi18n.App_Website}" 
                        FontWeight="Bold" />
                    <HyperlinkButton
                        Content="http://wulongapps.codeplex.com"
                        x:Name="GoToWebsite"
                        HorizontalAlignment="Left"
                        Foreground="#FF64C4FB"
                        FontWeight="Bold"
                        />
                    <TextBlock
                        FontSize="36"
                        Text="{Binding Source={StaticResource ls}, Path=Appi18n.App_Email}" 
                        FontWeight="Bold" />
                    <HyperlinkButton
                        Content="wpcfan@163.com"
                        x:Name="WriteEmail"
                        HorizontalAlignment="Left"
                        Foreground="#FF64C4FB"
                        FontWeight="Bold"
                        />
                    <TextBlock
                        FontSize="36"
                        Text="Twitter" 
                        FontWeight="Bold" />
                    <HyperlinkButton
                        Content="@wpcfan"
                        x:Name="FollowMeOnTwitter"
                        HorizontalAlignment="Left"
                        Foreground="#FF64C4FB"
                        FontWeight="Bold"
                        />
                    <TextBlock
                        FontSize="36"
                        Text="{Binding Source={StaticResource ls}, Path=Appi18n.App_Weibo}" 
                        FontWeight="Bold" />
                    <HyperlinkButton
                        Content="接灰的电子产品"
                        x:Name="FollowMeOnWeibo"
                        HorizontalAlignment="Left"
                        Foreground="#FF64C4FB"
                        FontWeight="Bold"
                        />
                </StackPanel>
            </controls:PivotItem>

            <!--Pivot item two-->
            <controls:PivotItem Header="{Binding Source={StaticResource ls}, Path=Appi18n.About_Disclaimer}">
                <StackPanel>
                    <TextBlock 
                        FontSize="26"
                        TextWrapping="Wrap"
                        Text="{Binding Source={StaticResource ls}, Path=Appi18n.About_Disclaimer_Desc}"/>
                </StackPanel>
            </controls:PivotItem>
        </controls:Pivot>
    </Grid>
    
</phone:PhoneApplicationPage>